package com.xmx.usercenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xmx.common.utils.PageUtils;
import com.xmx.common.utils.Query;
import com.xmx.usercenter.dao.AddressDao;
import com.xmx.usercenter.dao.OauthClientDao;
import com.xmx.usercenter.entity.AddressEntity;
import com.xmx.usercenter.entity.OauthClientEntity;
import com.xmx.usercenter.service.AddressService;
import com.xmx.usercenter.service.OauthClientService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;


@Service("oauthClientService")
public class OauthClientServiceImpl extends ServiceImpl<OauthClientDao, OauthClientEntity> implements OauthClientService {


    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OauthClientEntity> page = this.page(
                new Query<OauthClientEntity>().getPage(params),
                new QueryWrapper<OauthClientEntity>()
        );

        return new PageUtils(page);
    }

}